﻿using System.Configuration;
using System.Data.SqlClient;

namespace Common
{
    public sealed class SqlTools
    {
        private SqlTools()
        {
            
        }
        /// <summary>
        /// Gets the connection.
        /// </summary>
        /// <returns></returns>
        public static SqlConnection GetConnection()
        {
            string connectionString = ConfigurationManager.ConnectionStrings["BlogConnectionLocal"].ConnectionString;
            SqlConnection sqlConnection = new SqlConnection(connectionString);
            return sqlConnection;
        }
    }
}
